package com.bizuma.template.provider.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.bizuma.template.domain.Person;
import com.bizuma.template.provider.PersonProvider;

public class PersonProviderImpl implements PersonProvider {

//	@PersistenceUnit
//	private EntityManagerFactory emFactory;
	
	@PersistenceContext
	private EntityManager em;

//	public void setEmFactory(EntityManagerFactory emFactory) {
//		this.emFactory = emFactory;
//	}

	public void registerPerson(Person person) {
		this.em.persist(person);
	}
	

}
